class TopicInfoModel {
  int code;
  String msg;
  TopicInfoEntity data;

  TopicInfoModel({this.code, this.msg, this.data});

  TopicInfoModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    data = json['data'] != null
        ? new TopicInfoEntity.fromJson(json['data'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class TopicInfoEntity {
  int id;
  String name;
  String description;
  String imgUrl;
  int wineTalkNum;
  int openTimes;
  int robotOpenTimes;
  String leadingWords;
  int totalOpenTimes;
  int isDelete;
  int state;
  String currentTime;
  int type;
  String awardStartTime;
  String awardEndTime;
  int flag;
  int virtualWineTalkNum;
  int topicTypeFlag;

  TopicInfoEntity(
      {this.id,
      this.name,
      this.description,
      this.imgUrl,
      this.wineTalkNum,
      this.openTimes,
      this.robotOpenTimes,
      this.leadingWords,
      this.totalOpenTimes,
      this.isDelete,
      this.state,
      this.currentTime,
      this.type,
      this.awardStartTime,
      this.awardEndTime,
      this.flag,
      this.virtualWineTalkNum,
      this.topicTypeFlag});

  TopicInfoEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    description = json['description'];
    imgUrl = json['imgUrl'];
    wineTalkNum = json['wineTalkNum'];
    openTimes = json['openTimes'];
    robotOpenTimes = json['robotOpenTimes'];
    leadingWords = json['leadingWords'];
    totalOpenTimes = json['totalOpenTimes'];
    isDelete = json['isDelete'];
    state = json['state'];
    currentTime = json['currentTime'];
    type = json['type'];
    awardStartTime = json['awardStartTime'];
    awardEndTime = json['awardEndTime'];
    flag = json['flag'];
    virtualWineTalkNum = json['virtualWineTalkNum'];
    topicTypeFlag = json['topicTypeFlag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['description'] = this.description;
    data['imgUrl'] = this.imgUrl;
    data['wineTalkNum'] = this.wineTalkNum;
    data['openTimes'] = this.openTimes;
    data['robotOpenTimes'] = this.robotOpenTimes;
    data['leadingWords'] = this.leadingWords;
    data['totalOpenTimes'] = this.totalOpenTimes;
    data['isDelete'] = this.isDelete;
    data['state'] = this.state;
    data['currentTime'] = this.currentTime;
    data['type'] = this.type;
    data['awardStartTime'] = this.awardStartTime;
    data['awardEndTime'] = this.awardEndTime;
    data['flag'] = this.flag;
    data['virtualWineTalkNum'] = this.virtualWineTalkNum;
    data['topicTypeFlag'] = this.topicTypeFlag;
    return data;
  }
}
